//
//  MCMyXiaJiBonusContractListModel.h
//  TLYL
//
//  Created by MC on 2017/11/6.
//  Copyright © 2017年 TLYL01. All rights reserved.
//

#import <Foundation/Foundation.h>
//简要描述：
//
//获取下级的分红契约列表（新制度）
//请求URL：
//
///web-api/api/v4/get_sub_bonus_new
@interface MCMyXiaJiBonusContractListModel : NSObject

@property(nonatomic,strong) void(^callBackSuccessBlock)(id manager);
@property(nonatomic,strong) void(^callBackFailedBlock)(id manager,NSString *errorCode);
- (void)refreashDataAndShow;

- (instancetype)initWithDic:(NSDictionary *)dic;

@end

@interface MCMyXiaJiBonusContractListDataModel : NSObject


@property (nonatomic,strong)NSString *State    ;//Int    契约状态：0=修改待确认，1=已签约
@property (nonatomic,strong)NSString *PageCount    ;//Int    总页码数
@property (nonatomic,strong)NSString *DataCount    ;//Int    总条目数
@property (nonatomic,strong)NSString *LockState    ;//Int    锁定状态：0=未锁定，1=已锁定
@property (nonatomic,strong)NSString *UpdateDateTime    ;//String    修改时间
@property (nonatomic,strong)NSString *IsSubContract    ;//Int    是否与下级签约：0=否，1=是
@property (nonatomic,strong)NSArray * ContractManagerModels;//    Array    数据列表



@end


@interface MCMyXiaJiBonusContractListDeatailDataModel : NSObject



@property (nonatomic,strong)NSString *UserID    ;//Int    下级用户ID
@property (nonatomic,strong)NSString *UserName    ;//String    下级用户名
@property (nonatomic,strong)NSString *AgentLevel    ;//Int    等级
@property (nonatomic,strong)NSString *Rebate    ;//Int    下级返点
@property (nonatomic,strong)NSString *State    ;//Int    签约状态 见备注1、2
@property (nonatomic,strong)NSString *SuperiorUserID    ;//String    上级 ID
@property (nonatomic,strong)NSString *SuperiorUserName    ;//String    上级用户名
@property (nonatomic,strong)NSString *CreateTime    ;//String    创建时间
@property (nonatomic,strong)NSString *DealTime    ;//String    修改时间
@property (nonatomic,strong)NSString *LockState    ;//Int    锁定状态 见备注1、2


@end

/*
"data":{
    "State":1
    "PageCount":2,
    "DataCount":4,
    "LockState":0,
    "UpdateDateTime":"2018/1/18 20:51:20",
    "IsSubContract":1,
    "ContractManagerModels":[
                             {
                                 "UserID":16598,
                                 "UserName":"099测试",
                                 "AgentLevel":4,
                                 "Rebate":1956,
                                 "State":2,
                                 "SuperiorUserID":0,
                                 "SuperiorUserName":"",
                                 "CreateTime":"0001-01-01 00:00:00",
                                 "DealTime":"0001-01-01 00:00:00",
                                 "LockState":0,
                                 "SettlementState":0,
                             }
                             ]
}

*/




































